﻿<UserControl x:Class="OutputTree.OutputTreeControl"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:toolkit="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Toolkit"
    xmlns:mswindows="clr-namespace:Microsoft.Windows;assembly=System.Windows.Controls.Toolkit" 
    xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk"  
    mc:Ignorable="d"
    HorizontalAlignment="Stretch" VerticalAlignment="Stretch"             
    d:DesignHeight="300" d:DesignWidth="400"
    xmlns:my="clr-namespace:OutputTree">

    <UserControl.Resources>
        <sdk:HierarchicalDataTemplate x:Key="TreeViewMainTemplate">
            <my:TreeNodeItemContent Text="{Binding Text,Mode=OneWay}" Color="{Binding Color,Mode=OneWay}" Margin="0, 0, 0, 0" Padding="0, 0, 0, 0" Height="14">
            </my:TreeNodeItemContent>
        </sdk:HierarchicalDataTemplate>
    </UserControl.Resources>

    <Grid x:Name="LayoutRoot" Background="White">
        <sdk:TreeView Name="OutputTreeView" Margin="0, 0, 0 ,0" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" 
            ItemTemplate="{StaticResource TreeViewMainTemplate}"
            HorizontalContentAlignment="Stretch" 
            VerticalContentAlignment="Stretch" 
            TabNavigation="Cycle" BorderThickness="0" UseLayoutRounding="False">
        </sdk:TreeView>
    </Grid>
    
</UserControl>
